package com.chaosj.memory.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @className: RandomLexiconDto
 * @description:
 * @author: caoyangjie
 * @date: 2021/8/13
 **/
@Data
@Accessors(chain = true)
@AllArgsConstructor
public class RandomLexiconDto extends HandlerDto{
    private String cmd;
    private String lexicon;
    private Integer number = 10;

    public RandomLexiconDto(String[] args) {
        super(args);
        cmd = args.length>3 ? args[1] : "c";
        lexicon = args.length>3 ? args[2] : "chinese";
        number = args.length>3 ? Integer.valueOf(args[3]) : 10;
    }
}
